var api = require('../../util/api.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  showUsers:function(e){
    let roleKey = e.currentTarget.dataset.roleKey;
    wx.navigateTo({
        url: `../user/user?roleKey=${roleKey}`
    });
  },
  goAddUser:function(){
    api.chain({});
    wx.navigateTo({
      url: "../user/info"
    });
  }
})